package locks.entity;

public class Account {
    private DollarAmount balance;


    public DollarAmount getBalance() {
        return balance;
    }

    public void setBalance(DollarAmount balance) {
        this.balance = balance;
    }

    public void debit(DollarAmount amount) {
        balance.subtract(amount);
    }

    public void credit(DollarAmount amount) {
        balance.add(amount);
    }
}
